Implement status check violation detection#7
Closed
dimeloper wants to merge 13 commits intowarestack:mainfrom
Closed
Implement status check violation detection#7dimeloper wants to merge 13 commits intowarestack:mainfrom
dimeloper wants to merge 13 commits intowarestack:mainfrom
Conversation
|
❌ Watchflow rules file not found The file How to fix:
After adding the file, push your changes to re-run validation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Implement comprehensive status check violation detection
Overview
Resolves the issue #4 where pull requests with failing status checks (such as required CI jobs) were not surfacing violations in Watchflow, even when corresponding rules were present and enabled in
.watchflow/rules.yaml.Changes
Core Infrastructure
STATUSevent type toEventTypeenum for handling GitHub status eventsStatusProcessorwith agentic rule evaluation for GitHub status eventsStatusEventHandlerfor webhook routing with factory registrationGitHub API Integration
get_pr_checks()method supporting both:PullRequestProcessorto fetch and include status check data in rule evaluationRule Validation System
RequiredChecksValidatorwith comprehensive support for:Documentation & Testing
Key Features
Usage Example
Users can now create rules like this in
.watchflow/rules.yaml:Deployment Notes
This is a backward-compatible feature addition. Existing rules and functionality remain unchanged. New status check rules can be added to repositories without affecting existing workflows.